// src/routes/index.jsx
import { Navigate } from "react-router-dom";
// import App from "./App";

import UserManagement from "../pages/UserManagement";
import FortuneManagement from "../pages/FortuneManagement";
import ContentManagement from "../pages/ContentManagement";
import OrderManagement from "../pages/OrderManagement";
import UserProfile from "../pages/UserProfile";
import LogManagement from "../pages/LogManagement";
import Settings from "../pages/Settings";
// import { element } from "prop-types";
import Index from "../pages/index";
import { Children } from "react";
import Dashboard from "../pages/Dashboard";

const router = [
  {
    path: "/",
    element: <Index></Index>,
    children: [
      {path: "/dashboard",element: <Dashboard></Dashboard>,},
      { path: "users", element: <UserManagement /> },
      { path: "fortunes", element: <FortuneManagement /> },
      // { path: "content", element: <ContentManagement /> },
      { path: "orders", element: <OrderManagement /> },
      // { path: "profile", element: <UserProfile /> },
      // { path: "logs", element: <LogManagement /> },
      // { path: "settings", element: <Settings /> },
    ],
  },

  // element: <App />,
  // children: [

  // ],
];

export default router;
